package com.hu.boot.service.impl;

import com.hu.boot.entity.User;
import com.hu.boot.mapper.UserMapper;
import com.hu.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    private UserMapper userMapper;

    @Autowired
    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> findAll() {
        return this.userMapper.findAll();
    }
}
